home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 014 / killdir4.arc / KILLDIR.DOC next >
Encoding:
Text File  |  1987-03-24  |  3.6 KB  |  86 lines

  1. KILLDIR version 4.0
  2.      This program was re-written in 'C' and no longer includes the
  3. source code in the archive library, KILLDIR.ARC, since the 'C' program
  4. calls assembler modules to do functions such as changing directories, etc.
  5. Without the assembler modules in my library, you could not re-compile this
  6. anyway, and my library is set up to work with Microsoft 'C' only.
  7.  
  8. CHANGES:
  9.      The major changes from previous versions of KILLDIR include:
  10.      1.  The program contains a "recursive" feature which will delete the
  11. indicated directory and as many sub-sub directories as exist under the
  12. target directory.
  13.      2.  The program now only prompts once to ask permission to delete
  14. read-only files.  Previous versions asked permission for each file it found.
  15.  
  16. SYNTAX:
  17.      1.  Don't include the \ (root symbol) before the directory name
  18. to be killed, (i.e., use KILLDIR LEVEL1, not KILLDIR \LEVEL1).
  19.  
  20.      2.  You CANNOT be in the directory you are trying to delete.  You
  21. must be somewhere in the directory tree above the branch you are trying
  22. to delete.  For example, if you want to kill \LEVEL1, you should be in
  23. the root (\), NOT in \LEVEL1.
  24.  
  25.      If you have a subdirectory structure as follows, the commands below
  26. it would have the listed effects.
  27.  
  28. \(root)---\LEVEL1---\LEVEL2---\LEVEL3---\LEVEL4
  29.              |         |         |
  30.            filea
  31.            fileb
  32.            filec
  33.            \LEVEL1\LEVEL1A
  34.                      |
  35.                      filed
  36.                      filee
  37.                      \LEVEL1\LEVEL1A\LEVEL1B
  38.  
  39.  
  40.      Your location is:  \      (this is the root)
  41.                         KILLDIR LEVEL1
  42.      This command would kill the subdirectories starting at \LEVEL1
  43. and including:  \LEVEL1, \LEVEL1\LEVEL1A, & \LEVEL1\LEVEL1A\LEVEL1B
  44. and the files including: filea, fileb, filec, filed, & filee.  These
  45. files would be deleted even if they were read-only files.
  46.  
  47.      Your location is:  \      (this is the root)
  48.                         KILLDIR LEVEL2
  49.      This command would remove the subdirectories & files starting
  50.  at \LEVEL2.
  51.  
  52.      Your location is:  \      (this is the root)
  53.                         KILLDIR LEVEL1\LEVEL1A
  54.      This command would kill the subdirectories starting at
  55. \LEVEL1\LEVEL1A, through \LEVEL1\LEVEL1A\LEVEL1B; and files
  56. filed and filee.
  57.  
  58.  
  59.      If you enter the path incorrectly, (and the path is relative to your
  60. position in the directory tree), you will get an "invalid path" message.
  61. For example, if you are in \LEVEL2 and specify:
  62.      KILLDIR LEVEL1
  63.      You will get the error message "invalid path", it will beep at you
  64. and it will end.  Simply "CD \" and re-enter the command as "KILLDIR LEVEL1".
  65.  
  66. HOW IT WORKS:
  67.  
  68.      KILLDIR works by changing into the directory you specified,
  69. for example CD'ing into LEVEL1, deleting the files in LEVEL1, checking
  70. for and deleting any READ/ONLY files there, checking for sub-subdirectories,
  71. changing into sub-subdirectories, and repeating the process.  Once I
  72. get to the bottom of the tree, for example down to \LEVEL1\LEVEL1A\LEVEL1B,
  73. I start CD'ing back up and removing the now empty directories as I come
  74. back up until I reach your starting point.
  75.      I also try to put you back in the directory you were occupying when
  76. you started KILLDIR.  If you are in LEVEL2, for example, when KILLDIR
  77. exits, you are put back into LEVEL2.
  78.      If you have any problems, you can write to me at the following
  79. address:
  80. Amy J. Goebel
  81. #702
  82. 5903 Mt. Eagle Dr.
  83. Alexandria, VA  22303
  84.      If you have a modem, you can also reach me at a remote bulletin
  85. board system where I work.  The number is (703)756-6109.
  86.